import request from '@/utils/request'


// 案件签收办理
export function caseSignFor(data) {
  return request({
    url: '/signTransact/cawSignTransact/caseSignFor?caseId='+data.caseId,
    method: 'GET',
    data: data
  })
}
// 废案还原
export function caseRestore(data) {
  return request({
    url: '/signTransact/cawSignTransact/caseRestore',
    method: 'POST',
    data: data
  })
}

// 撤销申请授权
export function caseCancelApply(data) {
  return request({
    url: '/signTransact/cawSignTransact/caseCancelApply?caseId='+data.caseId,
    method: 'POST',
    data: data
  })
}

/*
* 案件环节 获取处置对象
* dictType （处置对象类型字典） 1派发核实任务、派发核查任务、再次派发核查任务 2向上下级分流 3立案并分级 4处置派遣-处置对象 5逐级转派-处置对象 6逐级转发-处置对象 7转发执法-处置对象 8多级派遣-处置对象;caseId 案件id
*/  
export function selectCzdx(data) {
  let param = "?dictType="+data.dictType+"&caseId="+data.caseId;
  return request({
    url: '/handleObject/amHandleObject/selectCzdx'+param,
    method: 'GET',
    data: data
  })
}

  
// 提交案件处理
export function submitCaseDeal(url, data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}



